FROM php:7.2.10-cli-alpine3.8

MAINTAINER jiuqu

COPY repositories /etc/apk/repositories
RUN apk --no-cache update && apk --no-cache upgrade && \
  apk add --no-cache supervisor tzdata && \
  docker-php-ext-install opcache pdo_mysql bcmath && \
  cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
  echo "Asia/Shanghai" > /etc/timezone && \
  apk del tzdata

ADD php.ini /usr/local/etc/php
